package com.example.flower_shop.vo.article;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "文章请求参数")
public class ArticleReq {
    // 文章管理ID
    @Schema(description = "文章管理ID")
    private Long id;

    // 文章标题
    @Schema(description = "文章标题")
    @NotBlank(message = "文章标题不能为空")
    private String title;

    @Schema(description = "图片")
    private String[] imageInput;

    // 文章简介
    @Schema(description = "文章简介")
    @NotBlank(message = "文章简介不能为空")
    private String synopsis;

    // 状态
    @Schema(description = "状态")
    private Boolean status;
    // 文章内容
    @Schema(description = "文章内容")
    @NotBlank(message = "文章内容不能为空")
    private String content;
}
